
import java.util.ArrayList;
import java.util.List;

public class College {

    public College() {
    }

    private List<Building> buildings;

    private List<Course> courses;

    public List<Building> getBuildings() {
        return buildings;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void addBuilding(Building building) {
        if (buildings == null) {
            buildings = new ArrayList<>();
        }
        buildings.add(building);
    }

    public void addCourse(Course course) {
        if (courses == null) {
            courses = new ArrayList<>();
        }
        courses.add(course);
    }

}